package depricated;

import java.util.Calendar;
import java.util.TimeZone;
import java.util.*;
import processing.core.PApplet;

public class LuasServices{
	
	public String line;
	public String[] ids = TimeZone.getAvailableIDs(0 * 60 * 60 * 1000);
	public SimpleTimeZone gmt = new SimpleTimeZone(0 * 60 * 60 * 1000, ids[0]);
	public Calendar calendar = new GregorianCalendar(gmt);
	public int day = Calendar.DAY_OF_WEEK;
	public int hour = Calendar.HOUR;
	public int minute = Calendar.MINUTE;
	public boolean check;
	
	public LuasServices(String line){
		super();
		this.line=line;
	}

	public static void main(String[] args){
		LuasServices x = new LuasServices("green");
		x.manageTime();
	}
	
	public void manageTime(){

		 // if no ids were returned, something is wrong. get out.
		 if (ids.length == 0)
		     System.exit(0);


		 // create a GregorianCalendar with the Pacific Daylight time zone and the current date and time
		 
		 Date date = new Date();
		 calendar.setTime(date);

		System.out.println();
		System.out.println("Day of week: " + day);
		System.out.println();
		System.out.println("Hour of the Day:" + hour);
		System.out.println("Minute of the Hour:" + minute);
		 
	}

	
	public void getTimes(){
		do{
			if(line == "green"){
			
				//Monday - Friday
				if(day>=2 && day<=6){
					if((hour>=5 && minute>=30)||(hour<=6 && minute<=25)){
						
					}
				}
				
				//Saturday & Sunday
				if(day==7 || day==1){
					
				}
			
			}else if(line == "red"){
			
				//Monday - Friday
				if(day>=2 && day<=6){

				}
			
				//Saturday & Sunday
				if(day==7 || day==1){
				
				}
			}
		}while(check==true);
	}
}
